package com.xujicheng.dingtalk.oauth2;

import com.taobao.api.ApiException;

/**
 * 获取钉钉AccessToken
 *
 * @author: xujicheng
 * @project dingtalk-utils
 * @packge com.xujicheng.dingtalk.oauth2
 * @date: 2018/7/11 11:50
 * @description:
 */
public interface DingtalkToken {
    /**
     * 获取access_token
     * @return
     */
    String getToken() throws ApiException;

    /**
     * 续期accesss_token
     */
    void renewal() throws ApiException;

}
